package com.bigknow.appstore.web.console.app;

import com.bigknow.appstore.web.framework.entity.BaseEntity;
import com.bigknow.appstore.web.framework.entity.IEntity;
import org.mongodb.morphia.annotations.Entity;

import java.sql.Timestamp;

/**
 * Created by zhangwei on 2016/10/8.
 */
@Entity("access-token")
public class AccessToken extends BaseEntity implements IEntity {
    private long create_time;
    private String token_id;
    private int token_expired_seconds;
    private String authentication_id;
    private String username;
    private String client_id;
    private String token_type;
    private int refresh_token_expired_seconds;
    private String refresh_token;

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public String getToken_id() {
        return token_id;
    }

    public void setToken_id(String token_id) {
        this.token_id = token_id;
    }

    public int getToken_expired_seconds() {
        return token_expired_seconds;
    }

    public void setToken_expired_seconds(int token_expired_seconds) {
        this.token_expired_seconds = token_expired_seconds;
    }

    public String getAuthentication_id() {
        return authentication_id;
    }

    public void setAuthentication_id(String authentication_id) {
        this.authentication_id = authentication_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getClient_id() {
        return client_id;
    }

    public void setClient_id(String client_id) {
        this.client_id = client_id;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public int getRefresh_token_expired_seconds() {
        return refresh_token_expired_seconds;
    }

    public void setRefresh_token_expired_seconds(int refresh_token_expired_seconds) {
        this.refresh_token_expired_seconds = refresh_token_expired_seconds;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }
}
